# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=tor-autocircuit
pkgver=0.2
pkgrel=11
groups=('blackarch' 'blackarch-defensive')
pkgdesc='Was developed to give users a finer control over Tor circuit creation.'
arch=('any')
url='http://www.thesprawl.org/projects/tor-autocircuit/'
license=('custom')
depends=('tor' 'python2-pytorctl' 'python2-elixir' 'python2-geoip')
source=("http://www.thesprawl.org/media/projects/$pkgname-$pkgver.tar.gz")
sha512sums=('45af2fd98836e537fac23aaf7d6a4178d285866200e32e2139d27619be22935be7d724a6bef811dbcc2a1be36be01ff023013607e4ab763e5a824df4049e7242')

build() {
  sed 's/usr\/bin\/python/usr\/bin\/env python2/g' \
    -i "$srcdir/$pkgname/$pkgname.py"
}

package() {
  cd $pkgname

  install -Dm 755 "$pkgname.py" "$pkgdir/usr/bin/$pkgname"
}

